	
	<?php echo validation_errors(); ?>
	
	<form id="customForm" method="post" action="<?php echo site_url()?>/list_price/new_list_price2">
		
		<input type="hidden" id="listpriceid" name="listprice_form[id]" value="<?php if(isset($id)) echo $id?>" />
		
		
		<label><?php echo lang('general_category')?></label>
		<select id="category_id" name="listprice_form[category_id]">
			<option value='a'> <?php echo "-- ".lang('menuitem_select')." --"?></option>
		<?php
			foreach($list_price_cat as $id => $value){
				if($id == @$category_id)
					echo "<option selected='selected' value='".$id."' ". set_select('listprice_form[category_id]', $id) ." >".$value."</option>";
				else
					echo "<option value='".$id."' ". set_select('listprice_form[category_id]', $id) ." >".$value."</option>";
			}
		?>
		</select>
		
		
		<label><?php echo lang('form_label_name')?></label>
		<input type="text" id="test_name" name="listprice_form[test_name]" value="<?php echo set_value('test_name'); if(isset($test_name)) echo $test_name?>" />
		
		<label><?php echo lang('menuitem_price')?></label>
		<input type="text" id="price" name="listprice_form[price]" value="<?php echo set_value('price'); if(isset($price)) echo $price?>" />
		
		
		<input type="submit" id="submit" name="submit" value="<?php echo lang('form_label_save')?>" />
	</form>
